package com.jade.zsy.finance.entity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/6/21
 * Time: 21:59
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "ZSY_FIN_INVOICE_DETAIL")
public class InvoiceDetail extends IdEntity {
    @Column(name = "partnerId", nullable = false,updatable = true,length = 100)
    private long partnerId=0;//客户对象
    @Column(name = "amount", nullable = false,updatable = true,length = 100)
    private BigDecimal amount=new BigDecimal(0);//开票金额
    @Column(name = "recordNo", updatable = false, nullable = false, length = 100)
    private String recordNo; /** 单据编号 **/
    @Column(name = "recordDate", updatable = true, nullable = false, length = 25)
    private String recordDate; /** 单据日期 **/
    @Column(name = "remark", nullable = true,updatable = true,length = 100)
    private String remark;//开票备注

    public long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(long partnerId) {
        this.partnerId = partnerId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getRecordNo() {
        return recordNo;
    }

    public void setRecordNo(String recordNo) {
        this.recordNo = recordNo;
    }

    public String getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(String recordDate) {
        this.recordDate = recordDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
